package com.ocom.human.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.human.EntityPersonTagRelation;
import com.ocom.common.request.human.GetByPersonTagVo;

import java.util.List;
import java.util.Set;

public interface PersonTagRelationService extends IService<EntityPersonTagRelation> {

    List<EntityPersonTagRelation> getByComId(Long comId);

    List<EntityPersonTagRelation> getByComPId(Long comId,Integer pId);

    boolean batchDeleteById(Long comId, List<Long> ids);

    boolean batchDeleteByPId(Long comId, Set<Long> pIds);

    boolean batchSave(Long comId, List<EntityPersonTagRelation> entity);

    List<GetByPersonTagVo> getByPersonTag(Long comId, List<Long> pIds);
}
